function getCookie(name) {
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1) {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    } else {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1) {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}
function mario() {
	var author = getCookie('blog_nombre');
	var email = getCookie('blog_correo');
	var web = getCookie('blog_web');
	document.commentform.author.value = author;
	document.commentform.email.value = email;
	document.commentform.web.value = web;
	if ((email!=null) || (author!=null) || (web!=null)) {
		document.commentform.recordar.checked=1;
	} else { 
		document.commentform.recordar.checked=0;
	}
	if (author==null) document.commentform.author.value = '';
	if (email==null) document.commentform.email.value = '';
	if (web==null) document.commentform.web.value = '';

}